package com.commpany.jdq.core.constant;


public enum CommomConfigEnum {

    ZC(1,"inviteRegisterRule"),  //注册邀请奖励规则
    FK(2,"grantMoneyRule");      //成功放款奖励规则


    private int id;

    private String code;

    private CommomConfigEnum(int id, String code){
        this.id = id;
        this.code = code;
    }

    public static CommomConfigEnum getRewardCode(int id) {
		for(CommomConfigEnum em : CommomConfigEnum.values()){
			if(em.getId()==id){
				return em;
			}
		}
		return null;
	}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}